package com.zxy.study.provider

import android.content.Context
import android.net.Uri
import androidx.core.content.FileProvider
import java.io.File

/**
 * @author : Shonn.Zhang
 * @email  : shonn.zhang@mart.blue
 * @time   : 2020/12/2 14:40
 * @desc   :
 */
class MyFileProvider : FileProvider() {

    fun getUriForFile(context: Context, file: File): Uri? {
        val authority = context.packageName + ".fileprovider"
        return getUriForFile(context, authority, file)
    }

}